package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 矫正对象身体状况信息
 *
 * @author wenjie
 * @date 2024-04-03 14:47:08
 */
@Data
@TableName("jzdx_physical_condition")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "矫正对象身体状况信息")
public class JzdxPhysicalConditionEntity extends Model<JzdxPhysicalConditionEntity> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 社区矫正对象编号
     */
    @Schema(description = "社区矫正对象编号")
    private String rybh;

    /**
     * 暂予监外执行人员身体状况
     */
    @Schema(description = "暂予监外执行人员身体状况")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String zyjwzxrystzk;

    /**
     * 是否有精神病
     */
    @Schema(description = "是否有精神病")
    private String sfyjsb;

    /**
     * 鉴定机构
     */
    @Schema(description = "鉴定机构")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String jdjg;

    /**
     * 是否有传染病
     */
    @Schema(description = "是否有传染病")
    private String sfycrb;

    /**
     * 具体传染病
     */
    @Schema(description = "具体传染病")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String jtcrb;

    /**
     * 最后就诊医院
     */
    @Schema(description = "最后就诊医院")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String zhjzyy;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}